<?php $this->beginContent('/layouts/main1'); ?>
<?php
$this->breadcrumbs=array(
	'Job Infos'=>array('index'),
	'Manage',
);
$this->menu=array(
	array('label'=>'List JobInfo', 'url'=>array('index')),
	array('label'=>'Create JobInfo', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('job-info-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>务工信息管理</h1>

<p>
使用(<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>)等操作进行信息搜索。
</p>

<?php echo CHtml::link('高级搜索','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'job-info-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'company',
		'industry',
		'vocation',
		'recruit_num',
		/*
		'compensation',
		'board_lodging',
		'work_address',
		'safe',
		'age',
		'sex',
		'work_age',
		'education_background',
		'health_certificate',
		'census_register',
		'skill',
		'job_descriptions',
		'blocking_time',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
<?php $this->endContent(); ?>